<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/top::head">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:replace="/common/top::header">

</div>
<div id="Content">

       <div id="BackLink">
           <a href="../catalog/MainController">Return to Main Menu</a>
       </div>

       <div id="Catalog">

           <h2 th:text="${cateName}"></h2>

           <table>
               <tr>
                   <th>Product ID</th>
                   <th>Name</th>
               </tr>
               <!-- 循环 -->

               <tr th:each="product:${products}">
                   <td ><a th:href="|ProductController?pro_id=${product.getProductId()}&pro_name=${product.productName}|" th:text="${product.getProductId()}"></a></td>
                   <td th:text="${product.getProductName()}"></td>
               </tr>




           </table>

       </div>

   </div>
   <div th:replace="common/bottom">

   </div>
</body>
</html>